package com.example.lasttrain;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class TitleActivity extends Activity {
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_title);
    }
    
	/** 画面タッチ時のクラス */
    @Override
    public boolean onTouchEvent(MotionEvent event) {
//        Log.d("TouchEvent", "X:" + event.getX() + ",Y:" + event.getY());
        Intent intent = new Intent(this,ListActivity.class);
        intent.setAction(Intent.ACTION_VIEW);
        startActivity(intent);
        return true;
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_title, menu);
        return true;
    }
}